import request from '/@/utils/request'
// 查询萤石云摄像头抓图时间模板列表
export function listYs7CamerasSchedule(query:object) {
  return request({
    url: '/api/v1/system/ys7CamerasSchedule/list',
    method: 'get',
    params: query
  })
}
// 查询萤石云摄像头抓图时间模板详细
export function getYs7CamerasSchedule(id:number) {
  return request({
    url: '/api/v1/system/ys7CamerasSchedule/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增萤石云摄像头抓图时间模板
export function addYs7CamerasSchedule(data:object) {
  return request({
    url: '/api/v1/system/ys7CamerasSchedule/add',
    method: 'post',
    data: data
  })
}
// 修改萤石云摄像头抓图时间模板
export function updateYs7CamerasSchedule(data:object) {
  return request({
    url: '/api/v1/system/ys7CamerasSchedule/edit',
    method: 'put',
    data: data
  })
}
// 删除萤石云摄像头抓图时间模板
export function delYs7CamerasSchedule(ids:number[]) {
  return request({
    url: '/api/v1/system/ys7CamerasSchedule/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
